package com.lagou.protocol;

import java.util.concurrent.CountDownLatch;

public class RpcResponse {
    private String threadInfo;
    private String result;
    private CountDownLatch latch;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getThreadInfo() {
        return threadInfo;
    }

    public void setThreadInfo(String threadInfo) {
        this.threadInfo = threadInfo;
    }

    public CountDownLatch getLatch() {
        return latch;
    }

    public void setLatch(CountDownLatch latch) {
        this.latch = latch;
    }

    @Override
    public String toString() {
        return "RpcResponse{" +
                "threadInfo='" + threadInfo + '\'' +
                ", result='" + result + '\'' +
                '}';
    }
}
